package org.example.travel_web.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.travel_web.dto.data.CollectRankResp;
import org.example.travel_web.dto.data.CommentRankResp;
import org.example.travel_web.dto.data.LineGraphDataItem;

import java.time.LocalDateTime;
import java.util.List;

public interface DataMapper {
    List<CollectRankResp> getCollectRank();

    List<CommentRankResp> getCommentRank();

    List<LineGraphDataItem> getCommentByDateRange(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);

    List<LineGraphDataItem> getCollectByDateRange(@Param("start") LocalDateTime start, @Param("end") LocalDateTime end);

    Integer getUserCount();

    Integer getTodayUserCount(LocalDateTime threshold);

    Integer getTotalResource();

    Integer getTotalComment();
}
